import { ScriptConfType } from '../types'
import { ScriptConfTypeConst } from '../consts'
import { genScriptConfDefaultIcon } from './gen-script-conf-default-icon'

/**
 * 生成一个各配置项为空的脚本配置对象
 *
 * @returns {ScriptConfType} 脚本配置对象
 */
export const genScriptConf = (): ScriptConfType => {
  return {
    type: ScriptConfTypeConst.SCRIPT,
    parent: '',
    name: '',
    cmd: '',
    priority: 0,
    icon: genScriptConfDefaultIcon(),
    color: '#409EFF',
    remark: ''
  }
}
